﻿#ifndef PROTREEWIDGET_H
#define PROTREEWIDGET_H

#include <QTreeWidget>
#include <QSet>
#include <QAction>
#include <QProgressDialog>
#include "protreethread.h"
class ProTreeWidget : public QTreeWidget
{
    Q_OBJECT
public:
    ProTreeWidget(QWidget *parent = nullptr);
    ~ProTreeWidget();
    void creProItem();
public slots:
    void addProToTree(const QString path,const QString name);
    void slot_item_press(QTreeWidgetItem *item, int column);
    void slot_import();


private:
    QSet<QString> m_filePaths;
    QTreeWidgetItem *_right_btn_item;

    QAction *_action_import;  //导入

    QProgressDialog *_dialog_progress;

    //copy文件线程
    std::shared_ptr<ProTreeThread> _thread_creat_pro;

private slots:
    void SlotImport();
};

#endif // PROTREEWIDGET_H
